<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>快速查找</title>
		<script src="../js/mui.min.js"></script>
		<link href="../css/mui.min.css" rel="stylesheet" />
	</head>
	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">快速查找</h1>
		</header>
		<div class="mui-content">
			<div id="input_example">
				<div class="mui-input-row">
					<label>姓名</label>
					<input type="text" id="xm" class="mui-input-clear" placeholder="请输入姓名">
				</div>
				<div class="mui-input-row">
					<label>手机号</label>
					<input type="text" id="sjhm" class="mui-input-clear" value="123123" placeholder="请输入手机号">
				</div>

				<div class="mui-button-row">
					<button type="button" class="mui-btn mui-btn-primary">确认</button>
				</div>
			</div>
		</div>
		<script src="../js/mui.min.js"></script>
		<script src="../js/util.js"></script>
		<script>
			mui.init();
			mui('.mui-button-row').on('tap','.mui-btn-primary',function(){
//				mui("#input_example input").each(function() {
//					//若当前input为空，则alert提醒 
//					if(!this.value || this.value.trim() == "") {
//					    var label = this.previousElementSibling;
//					    mui.alert(label.innerText + "不允许为空");
//					    check = false;
//					    return false;
//					}
//				}); //校验通过，继续执行业务逻辑
				console.log(document.getElementById("sjhm").value);
				console.log(document.getElementById("sjhm").value);
			}) 
		</script>
	</body>
</html>
